package dubbo.server2.impl.controller;

import dubbo.server1.api.TestService1;
import dubbo.server1.api.entity.User;
import dubbo.server2.impl.common.FastDFSClient;
import dubbo.server2.impl.domain.PrintDto;
import dubbo.server3.api.TestService3;
import dubbo.server4.api.TestService4;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

@Controller
@RequestMapping("/print")
public class PrintController {
	private Logger logger = Logger.getLogger(PrintController.class);
	@RequestMapping("/test")
	public ModelAndView test() {
		ModelAndView model=new ModelAndView("Print");
		List<PrintDto> list=new ArrayList<>();
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		list.add(new PrintDto("P11111111","W11111111111","苹果手机/Iphone 8","Li1111111",5,"J11111111111"));
		model.addObject("list",list);
		return model;
	}
}
